package com.citi.xylophone.phoneEmulator.view.listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import com.citi.xylophone.phoneEmulator.view.MainPanelview;

public class ButtonDialListener implements ActionListener {
	
private MainPanelview mainPanelview;
	
	
	public ButtonDialListener(MainPanelview mainPanelview) {
		super();
		this.mainPanelview = mainPanelview;
	}
	
	public void actionPerformed(ActionEvent actionevent) {
		
		try {
			
			mainPanelview.getTextField1().setText(mainPanelview.getTextField1().getText()+actionevent.getActionCommand());
					
		
		} catch (Exception e) {			
			e.printStackTrace();
		}
	}

}
